### -*- coding: utf-8 -*- #############################################
# Разработано Паэглит Арвидом (http://arvid.dp.ua/)
# Все права защищены, 2007
#
# Developed by Paeglit Arvid (http://arvid.dp.ua/)
# All right reserved, 2007
#######################################################################
"""GeneticAdapter class for the Zope 3 based diplom.ga package

$Id: annotationadapter.py 60 2007-12-18 16:10:42Z Arvi3D $

"""
__author__  = "Arvid"
__license__ = "GPL"
__version__ = "$Revision: 60 $"
__date__ = "$Date: 2007-12-18 16:10:42 +0000 (Tue, 18 Dec 2007) $"

from zope.annotation.interfaces import IAnnotations

from genetic import Genetic
from interfaces import gaAnnotationKey

def GeneticAdapter(context) :
    return IAnnotations(context).setdefault(gaAnnotationKey, Genetic())
